<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>六西格玛知识管理</title>
<link href="<?php echo $this->baseUrl ?>/public/style/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo $this->baseUrl;?>/public/style/daterangepicker.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl;?>/public/style/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseUrl;?>/public/scripts/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl;?>/public/scripts/daterangepicker.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl;?>/public/scripts/jquery-ui.js"></script>

</head>

<body>
<!--头部-->
<?php echo $this->partial('common/header.html', array('template'=>$this->template, 'baseUrl'=>$this->baseUrl)) ?>

<!--主体-->
<div class="main-box" id="mainBox">
    <div class="third-menu">
        <?php echo $this->partial('common/operation.html', array('type'=>$this->type, 'template'=>$this->template, 'baseUrl'=>$this->baseUrl)) ?>
        <div class="menu-title"><span class="icon"></span>用户分组列表页</div>
    </div>
    <div class="main-list">
        <table class="main-list-table">
            <?php if ($this->groups): ?>
            <tr class="table-head"><td class="th-name">分组名称</td><td class="th-console">所拥有管理模块</td><td>操作</td></tr>
            <tr class="table-point"><td></td><td></td><td></td><td></td><td></td></tr>
            <?php foreach ($this->groups as $key => $val): ?>
            <tr>
                <td class="name">
                <?php echo $val['name']; ?>
                </td>
                <td><?php $models = array('project'=>'项目模块','student'=>'学生模块','class'=>'班级模块','company'=>'客户模块','course'=>'课程模块','teacher'=>'教师模块','tag'=>'标签模块','system'=>'系统模块');
                    $model = explode(',',$val['models']);foreach($model as $k=>$v): echo $models[$v];?>&nbsp;&nbsp;&nbsp;&nbsp;<?php endforeach;?></td>
                <td><div class="console"><a href="<?php echo $this->baseUrl ?>/group/edit?group_id=<?php echo $val['group_id']; ?>" class="edit">修改</a>
                        <a href="<?php echo $this->baseUrl ?>/group/delete?group_id=<?php echo $val['group_id']; ?>" class="delete" onClick="return confirm('您确定要删除吗？')?true:false;">删除</a></div></td>
                
            </tr>
            <?php endforeach; ?>
            <?php else: ?>
            暂无信息
            <?php endif; ?>
        </table>
    </div>
</div>

<!--底部-->
<?php echo $this->partial('common/footer.html') ?>
</body>
</html>
